﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SH.Multitenant.Domain.WorkFlow
{
    /// <summary>
    /// 流程实例表
    /// </summary>
    public class FlowInstance
    {
        /// <summary>
        /// 流程实例id 当前时间戳
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public string FlowInstanceId { get; set; }
        /// <summary>
        /// 节点编号
        /// </summary>
        public string? NodeId { get; set; }
        /// <summary>
        /// 节点名称
        /// </summary>
        public string? NodeName { get; set; }
        /// <summary>
        /// 流状态
        /// </summary>
        public string? FlowStatus { get; set; }
        /// <summary>
        /// 流程发起人id e.g.EmpId
        /// </summary>
        public string? FlowInitiatorId { get; set; }

        /// <summary>
        /// 流程发起人名称
        /// </summary>
        public string? FlowInitiatorName { get; set; }
        /// <summary>
        /// 当前操作人id
        /// </summary>
        public string? CurrentOperatorId { get; set; }
        /// <summary>
        /// 当前操作人名称
        /// </summary>
        public string? CurrentOperatorName { get; set; }
        /// <summary>
        /// 待办人id
        /// </summary>
        public string? NextOperatorId { get; set; }
        /// <summary>
        /// 待办人名称
        /// </summary>
        public string? NextOperatorName { get; set; }
        /// <summary>
        /// 已操作人
        /// </summary>
        public string? HasOperatedPersons { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdTime { get; set; }
        /// <summary>
        /// 申请单号
        /// </summary>
        public int RequestId { get; set; }
    }
}
